$(function () {
    $('#vertical-ticker').totemticker({
        row_height: '100px',
        mousestop: true,
    });

    $(".news_content").each(function (e) {
        var divHeight = $(this).height();
        var $p = $("p", $(this)).eq(0);

        while ($p.outerHeight() > divHeight) {
            $p.text($p.text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/, "..."));
        };
    });
});